<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        .alert {
            position: relative;
            padding: 7px;
            margin: 7px 0;
            border: 1px solid transparent;
            color: #004085;
            background-color: #cce5ff;
            border-color: #b8daff;
            border-radius: 5px;
        }
        input[type=submit] {
            font-family: inherit;
        }
        input[type=text] {
            border: 1px solid #ddd;
        }
        input[type=password] {
            border: 1px solid #ddd;
        }
        .btn {
            font-size: 12px;
            padding: 3px 5px;
            text-decoration: none;
            cursor: pointer;
            background-color: white;
            color: black;
            border: 1px solid #555555;
            border-radius: 5px;
        }
        .btn:hover {
            text-decoration: none;
            background-color: black;
            color: white;
            border: 1px solid black;
        }
    </style>
</head>
{% for message in get_flashed_messages() %}
<div class="alert">{{ message }}</div>
{% endfor %}
<body>
    <form method="post">
        姓名 <input type="text" name="name" autocomplete="off" required>
        <br>
        <br>
        密码 <input type="password" name="password" autocomplete="off" required>
        <br>
        <br>
              <input class="btn" type="submit" name="submit" value="登录">
    </form>
    <br>
    <br>
    <form action="http://127.0.0.1:5000">
        <input class="btn" type="submit" value="返回">
    </form>
</body>
{#<main>#}
{#    {% for message in get_flashed_messages() %}#}
{#        <div class="alert">{{ message }}</div>#}
{#    {% endfor %}#}
{#    {% block content %}{% endblock %}#}
{#</main>#}
</html>